<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数组的every方法</title>
    <link href="./img/logo.png" rel="shortcut icon">
</head>
<body>

    <script>
        const arr = [
            { id:1,name:'甘雨',status:true },
            { id:2,name:'心海',status:true },
            { id:3,name:'凌华',status:true }
        ]

        // 判断数组中,是否全部被选中(全为true)
        const result = arr.every(item => item.status)
        console.log(result)
    </script>
</body>
</html>